//
//  InvoiceStatisticsDetailCell.m
//  NtoccShipper
//
//  Created by mac on 2020/1/7.
//  Copyright © 2020 zhuchongjin. All rights reserved.
//

#import "InvoiceStatisticsDetailCell.h"
@interface InvoiceStatisticsDetailCell()
@property (nonatomic,strong) CJLabel *labMainOrderNumber;
@property (nonatomic,strong) CJLabel *labOrderCode;
@property (nonatomic,strong) CJLabel *labDriverName;
@property (nonatomic,strong) CJLabel *labDriverPhone;
@property (nonatomic,strong) CJLabel *labVehicleLicense;
@property (nonatomic,strong) CJLabel *labShipperName;
@property (nonatomic,strong) CJLabel *labShipperPhone;
@property (nonatomic,strong) CJLabel *labShipperAddress;
@property (nonatomic,strong) CJLabel *labConsigneeName;
@property (nonatomic,strong) CJLabel *labConsigneePhone;
@property (nonatomic,strong) CJLabel *labConsigneeAddress;
@property (nonatomic,strong) CJLabel *labTaxPrice;
@property (nonatomic,strong) CJLabel *labShipperDeliveryFee;
@property (nonatomic,strong) CJLabel *labStatus;
@end
@implementation InvoiceStatisticsDetailCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setCellInfoWithModel:(DetailListModel *)model{
    
    self.labMainOrderNumber.text = model.mainOrderNumber;
    self.labOrderCode.text = model.orderCode;
    self.labDriverName.text = model.driverName;
    self.labDriverPhone.text = model.driverPhone;
    self.labVehicleLicense.text = model.vehicleLicense;
    self.labShipperName.text = model.shipperName;
    self.labShipperPhone.text = model.shipperPhone;
    self.labShipperAddress.text = model.shipperAddress;
    self.labConsigneeName.text = model.consigneeName;
    self.labConsigneePhone.text = model.consigneePhone;
    self.labConsigneeAddress.text = model.consigneeAddress;
    self.labTaxPrice.text = CJStringWithFormat(@"￥%@",@(model.taxPrice).cj_description);
    self.labShipperDeliveryFee.text = CJStringWithFormat(@"￥%@",@(model.shipperDeliveryFee).cj_description);
//    self.labTaxPrice.text = CJStringWithFormat(@"￥0.2%ld",model.taxPrice);

//    self.titleArray = @[@"全部",@"待审核",@"已取消",@"已开票",@"审核通过",@"审核驳回",@"审核中"];
//     self.titles = @[@"0",@"1",@"2",@"3",@"4",@"5",@"6"];
   
    
//    switch (model.status) {
////        case 0:
////            self.labStatus.text = @"";
////            break;
//        case 1:
//        self.labStatus.text = @"待审核";
//            break;
//        case 2:
//            self.labStatus.text = @"已取消";
//            break;
//        case 3:
//            self.labStatus.text = @"已开票";
//            break;
//        case 4:
//            self.labStatus.text = @"审核通过";
//            break;
//        case 5:
//            self.labStatus.text = @"审核驳回";
//            break;
//        case 6:
//            self.labStatus.text = @"审核中";
//            break;
//        default:
//            break;
//    }
}

@end
